package cate.common.table.guild;

import cate.common.table.ESheet;
import cate.common.table.d.GDGuild;

public class GuildActiveTaskSheet extends ESheet<GuildActiveTaskRow> {
    @Override
    public String getSheetName() {
        return "公会活跃任务";
    }

    /** 计算日常任务总量*/
    public int countDayTask() {
        return getList().stream()
                .filter(a -> a.cycle == GDGuild.refreshType.t0)
                .mapToInt(a->a.limitNum)
                .sum();
    }
}
